<!DOCTYPE html>
<html lang="en">
<html xmlns:th="http://www.thymeleaf.org">
<head>
<title>健康上报系统</title>
	<link rel="stylesheet" type="text/css" href="/css/a.css">
</head>
<body onload='getProvince()' bgcolor="#ffe4c4">
	<div>
		<div>
			<form action="/userPage/index" method="post" th:align="right">
				<input type="submit" value="退出系统"/>
			</form>
			<h1 align="center">疫情每日打卡,坚持就是胜利！</h1>
		</div>
		<div>
			<font color="#dc143c">
				<h1 align="center" th:text="${message}" ></h1>
			</font>
		</div>
	<div class="inputInfo">
		<form name = "form1" modelAttribute="information" th:action="'/userPage/insertInformation/' + ${personId}" method="post">
			<div>
				<input type="hidden" name="token" th:value="${session.token}">
				<span>1.姓名</span><br>
				<input type="text" name="name" th:value="${name}" disabled="disabled"/>
				<div class="clear"> </div>
			</div><br>

			<div>
				<span>2.学号/教职工号</span><br>
				<input type="text" name="personId" th:value="${personId}" disabled="disabled"/>
				<div class="clear"></div>
			</div><br>

			<div>
				<span>3.出生日期</span><br>
				<input type="date" name="birthday" th:value="${information.getBirthday()}"/>
				<div class="clear"> </div>
			</div><br>

			<div>
				<span>4.证件类型</span><br>
				<select name="cdType" th:value="${information.getCdType()}">
					<option th:value="${information.getCdType()}">选择</option>
					<option th:selected="${information.getCdType() eq '内地居民身份证'}" value="内地居民身份证">内地居民身份证</option>
					<option th:selected="${information.getCdType() eq '士官证'}" value="士官证">士官证</option>
					<option th:selected="${information.getCdType() eq '护照'}" value="护照">护照</option>
					<option th:selected="${information.getCdType() eq '香港特区护照/身份证'}" value="香港特区护照/身份证">香港特区护照/身份证</option>
					<option th:selected="${information.getCdType() eq '澳门特区护照/身份证'}" value="澳门特区护照/身份证">澳门特区护照/身份证</option>
					<option th:selected="${information.getCdType() eq '台湾居民来往大陆通行证'}" value="台湾居民来往大陆通行证">台湾居民来往大陆通行证</option>
				</select>
			</div><br>

			<div>
				<span>5.证件号码</span><br>
				<input type="text" name="cdCard" placeholder="证件号码" th:value="${information.getCdCard()}" required=""/>
				<div class="clear"> </div>
			</div><br>

			<div>
				<span>6.联系电话</span><br>
				<input type="text" name="phone" placeholder="联系电话" th:value="${information.getPhone()}" required=""/>
				<div class="clear"> </div>
			</div><br>

			<div>
				<span>7.身份</span><br>
				<select name="identity" >
					<option th:value="${information.getIdentity()}">选择</option>
					<option th:selected="${information.getIdentity() eq '大一'}" value="大一">大一</option>
					<option th:selected="${information.getIdentity() eq '大二'}" value="大二">大二</option>
					<option th:selected="${information.getIdentity() eq '大三'}" value="大三">大三</option>
					<option th:selected="${information.getIdentity() eq '大四'}" value="大四">大四</option>
					<option th:selected="${information.getIdentity() eq '教师'}" value="教师">教师</option>
				</select>
			</div><br>

			<div>
				<span>8.籍贯</span><br>
					<select name="nativeCity" id="province" onchange="chooseProvince(this)">
						<option th:value="${information.getNativeCity()}">请选择省</option>
					</select>
					<select name="nativeCity" id="city" onchange="chooseCity(this)">
						<option value="">请选择市</option>
					</select>

			</div><br>

			<div>
				<span>9.家庭详细地址:</span><br>
				<input type="text" name="homeAddress" placeholder="户口所在地" th:value="${information.getHomeAddress()}" required=""/>
			</div><br>

			<div>
				<span>10.现在居住详细地址</span><br>
				<input type="text" name="nowAddress" placeholder="现在居住地址" th:value="${information.getNowAddress()}" required=""/>
				<div class="clear"> </div>
			</div><br>

			<div>
				<span>11.健康状况</span><br>
				<select name="health">
					<option th:value="${information.getHealth()}">选择</option>
					<option th:selected="${information.getHealth() eq '良好'}" value="良好">良好</option>
					<option th:selected="${information.getHealth() eq '有咳嗽、发热症状'}" value="有咳嗽、发热症状">有咳嗽、发热症状</option>
					<option th:selected="${information.getHealth() eq '体温异常，保持在37.3摄氏度以上'}" value="体温异常，保持在37.3摄氏度以上">体温异常，保持在37.3摄氏度以上</option>
				</select>
			</div><br>

			<div>
				<span>12.近14天是否到达过重点地区</span><br>
				<div>
					<div>
						<label><input type="radio" name="keyArea" value="是">是</label>
					</div>
					<div>
						<label><input type="radio" name="keyArea" checked="checked" value="否">否</label>
					</div>
				</div>
			</div><br>

			<div>
				<span>13.近14天是否接触过重点人群</span><br>
				<div>
					<div>
						<label><input type="radio" name="keyPeople" value="是">是</label>
					</div>
					<div>
						<label><input type="radio" name="keyPeople" checked="checked" value="否">否</label>
					</div>
				</div>
				</div><br>

			<div>
				<span>14.今日体温</span><br>
				<input type="text" name="temperature" th:value="${information.getTemperature()}" required=""/>
			</div><br>
			<div th:if="${flag eq 0}">
				<input type="submit" value="提交"/>
			</div>
			<div th:if="${flag eq 1}">
				<input type="submit" value="提交" disabled="disabled"/>
			</div>
		</form>
	</div>
	</div>
	<script language="javascript" src="/js/province.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>